Skip to content

Conversation

@QuantumEnigmaa
Copy link
Contributor

This PR adds the possibility for a user to add additional annotations to the service account if it's created from the chart.

This is especially useful when using IRSA authentication on AWS kubernetes clusters as the user can add the annotation directly in the chart's values.

@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Oct 27, 2025
labels:
{{- include "plugin-barman-cloud.labels" . | nindent 4 }}
{{- with .Values.commonAnnotations }}
{{- if or .Values.serviceAccount.additionalAnnotations .Values.commonAnnotations }}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think going with Values.serviceAccount.annotations might be enough?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No because someone might only want to add additionalAnnotations (i.e only to the service account) and not any common annotations to all resources.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I meant in place of additionalAnnotations, not common :)

{{- with .Values.commonAnnotations }}
{{- if or .Values.serviceAccount.additionalAnnotations .Values.commonAnnotations }}
annotations:
{{- with .Values.serviceAccount.additionalAnnotations }}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would render the common on first and override with the SA specific ones

@QuentinBisson
Copy link

Hey @itay-grudev do you think you could take a look on your side?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants